package ubiqweb.spring3.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ubiqweb.spring3.dao.LoginDao;
import ubiqweb.spring3.model.LoginDetails;

@Service("loginService")
public class LoginServiceImpl implements LoginService {
	

	@Autowired
	private LoginDao loginDao;
	
	@Transactional
	public List<LoginDetails> getListLoginDetails(String userName, String password){
		return loginDao.getListLoginDetails(userName, password);
	}	
	
	@Transactional
	public List<LoginDetails> getListLoginDetails(String userId){
		return loginDao.getListLoginDetails(userId);
	}	
}
